package com.hl.ruoyizmhshop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.ruoyizmhshop.mapper.AfterSaleMapper;
import com.hl.ruoyizmhshop.domain.AfterSale;
import com.hl.ruoyizmhshop.service.IAfterSaleService;

/**
 * 退款Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-09
 */
@Service
public class AfterSaleServiceImpl implements IAfterSaleService 
{
    @Autowired
    private AfterSaleMapper afterSaleMapper;

    /**
     * 查询退款
     * 
     * @param asId 退款主键
     * @return 退款
     */
    @Override
    public AfterSale selectAfterSaleByAsId(Integer asId)
    {
        return afterSaleMapper.selectAfterSaleByAsId(asId);
    }

    /**
     * 查询退款列表
     * 
     * @param afterSale 退款
     * @return 退款
     */
    @Override
    public List<AfterSale> selectAfterSaleList(AfterSale afterSale)
    {
        return afterSaleMapper.selectAfterSaleList(afterSale);
    }

    /**
     * 新增退款
     * 
     * @param afterSale 退款
     * @return 结果
     */
    @Override
    public int insertAfterSale(AfterSale afterSale)
    {
        return afterSaleMapper.insertAfterSale(afterSale);
    }

    /**
     * 修改退款
     * 
     * @param afterSale 退款
     * @return 结果
     */
    @Override
    public int updateAfterSale(AfterSale afterSale)
    {
        return afterSaleMapper.updateAfterSale(afterSale);
    }

    /**
     * 批量删除退款
     * 
     * @param asIds 需要删除的退款主键
     * @return 结果
     */
    @Override
    public int deleteAfterSaleByAsIds(Integer[] asIds)
    {
        return afterSaleMapper.deleteAfterSaleByAsIds(asIds);
    }

    /**
     * 删除退款信息
     * 
     * @param asId 退款主键
     * @return 结果
     */
    @Override
    public int deleteAfterSaleByAsId(Integer asId)
    {
        return afterSaleMapper.deleteAfterSaleByAsId(asId);
    }
}
